import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('@/views/index')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/index/login')
    },
    {
      path: '/confirmBuy',
      name: 'confirmBuy',
      component: () => import('@/views/index/confirmBuy')
    },
    {
      path: '/detail',
      name: 'detail',
      title: 'detail',
      component: () => import('@/views/index/detail'),
      meta: { name: 'detail' }
    },
    {
      path: '/my',
      name: 'my',
      component: () => import('@/views/index/my')
    },
    {
      path: '/payBuy',
      name: 'payBuy',
      component: () => import('@/views/index/payBuy')
    },
    {
      path: '/ground',
      name: 'ground',
      component: () => import('@/views/index/ground')
    },




  ]
})
